import QtQuick 2.12
import QtQuick.Controls 2.5

Page {
    property alias sender: sender
    property Circle target: null
    property alias receiver: receiver

    //enabled: false
    focus: true

    header: Label {
        text: qsTr("Page 1")
        font.pixelSize: Qt.application.font.pixelSize * 2
        padding: 10
    }

    Rectangle {

        id: rectangle
        anchors.fill: parent
        gradient: Gradient {
            GradientStop {
                position: 0.07
                color: "#1ae59b"
            }

            GradientStop {
                position: 0.443
                color: "#000000"
            }

            GradientStop {
                position: 0.666
                color: "#ffffff"
            }

            GradientStop {
                position: 0.726
                color: "#000000"
            }
        }

        Receiver {
            id: receiver
            x: 348
            y: 55
            width: sender.width
            height: 200
            circleColor: "#ff0000"
            contentText: "Receiver"
        }

        Sender {
            id: sender
            x: 21
            y: 55
            circleColor: "#0000ff"
            contentText: "Sender"
        }
    }
}

/*##^##
Designer {
    D{i:0;autoSize:true;height:480;width:640}
}
##^##*/

